//
//  HLogin.h
//  Project
//
//  Created by 黄振 on 16/8/28.
//  Copyright © 2016年 黄振. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HLogin : NSObject
typedef NS_ENUM(NSInteger, LoginStatus) {
    LoginStatus_Failure,//登录失败
    LoginStatus_Logout,//登出状态
    LoginStatus_Success,//登录成功
};

@property (nonatomic, assign) LoginStatus loginStatus;

@property (nonatomic, strong) NSString *mobileNumber;
@property (nonatomic, strong) NSString *password;
@property (nonatomic, assign, readonly) BOOL isAutoLogin;

+ (instancetype)sharedInstance;

//登录
- (RACSignal *)loginWithMobileNumber:(NSString *)mobileNumber
                            password:(NSString *)password;
//登出
- (RACSignal *)logout;

- (void)login;


@end
